﻿using UnityEngine;
using System.Collections;

public class DrawLine : MonoBehaviour 
{
	LineRenderer lineRenderer;
	
	// Use this for initialization
	void Start () 
	{
		lineRenderer = GetComponent<LineRenderer>();
		lineRenderer.SetWidth(0.05f, 0.05f);
	}
	
	// Update is called once per frame
	void Update () 
	{
		lineRenderer.SetPosition(0, transform.position);
		lineRenderer.SetPosition(1, transform.forward * 30f);
	}
}
